package edu.mit.compilers.assembly.x64.codes;

import edu.mit.compilers.assembly.common.AssemblyCode;

public abstract class X64Code implements AssemblyCode {
    public static final long ALIGN_SIZE = 16;
    public static final String TAB = "\t";
    public static final String ALIGN_STR = ".align " + ALIGN_SIZE;

    @Override
    public void getStringForShow(String prefix, StringBuilder ret, boolean debug) {
        ret.append(getStringFroShow(prefix + TAB, debug));
    }

    protected abstract String getStringFroShow(String prefix, boolean debug);
}

